package com.cmes.core.exception;

import com.cmes.core.ResponseCode;
import com.cmes.core.ResponseCodeData;

/**
 * 业务异常基类
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
public class BizException extends ResponseCodeException {

    public BizException(ResponseCode responseCode) {
        super(responseCode);
    }

    public BizException(ResponseCode responseCode, Object... args) {
        super(responseCode, args);
    }

    public BizException(ResponseCodeData<?> response) {
        super(response.getCode(), response.getMessage());
    }

}
